package com.lvy.hczn.front.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lvy.hczn.front.system.domain.business.WarehousingEntry;
import com.lvy.hczn.front.system.domain.business.WarehousingOut;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 商品出库单Mapper接口
 *
 * @author ruoyi
 * @date 2023-05-30
 */
@Repository
public interface WarehousingOutMapper extends BaseMapper<WarehousingOut> {

    /**
     * 查询商品出库单列表
     *
     * @param warehousingOut 商品出库单
     * @return 商品出库单集合
     */
    List<WarehousingOut> selectWarehousingOutList(WarehousingOut warehousingOut);

    /**
     * 删除商品出库单
     *
     * @param id 商品出库单主键
     * @return 结果
     */
    int deleteWarehousingOutById(String id);

    /**
     * 批量删除商品出库单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteWarehousingOutByIds(String[] ids);

    /**
     * 获取提交到平台的入库单
     * @param warehousingOut
     * @return
     */
    List<WarehousingOut> commitToPlatform(@Param(value = "warehousingOut") WarehousingOut warehousingOut);
}
